package com.wjj.sixinone.common.pojo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
public class EmployeeExcel {

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名", index = 0)
    private String employeeName;

    /**
     * 员工职务
     */
    @ExcelProperty(value = "员工职务", index = 1)
    private String employeePosition;

    /**
     * 员工性别
     */
    @ExcelProperty(value = "员工性别", index = 2)
    private String employeeGender;

    /**
     * 员工头像
     */
    @ExcelProperty(value = "员工头像", index = 3)
    private String img;

    /**
     * 员工年龄
     */
    @ExcelProperty(value = "员工年龄", index = 4)
    private Integer employeeAge;

    /**
     * 员工电话
     */
    @ExcelProperty(value = "员工电话", index = 5)
    private String employeeTel;

    /**
     * 员工薪水
     */
    @ExcelProperty(value = "员工薪水", index = 6)
    private Integer employeeSalary;

    /**
     * 员工入职时间
     */
    @ExcelProperty(value = "员工入职时间", index = 7)

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")

    private LocalDateTime employeeWorkDate;

    /**
     * 员工所属部门
     */
    @ExcelProperty(value = "员工所属部门", index = 8)

    private String departmentName;

    @ExcelProperty(value = "创建人", index = 9)
    private String createUser;
    @ExcelProperty(value = "更新人", index = 10)
    private String updateUser;
    @ExcelProperty(value = "创建时间", index = 11)
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ExcelProperty(value = "更新时间", index = 12)
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")

    private LocalDateTime updateTime;
}
